import request from '_c/utils/request'

/**
 * 交易i流水
 */
export function listPage(data) {
  return request({
    url: '/api/ag/trx/list',
    method: 'GET',
    params: data
  })
}

/**
 * 交易汇总
 */
export function summaryByDay(data) {
  return request({
    url: '/api/ag/trx/sum',
    method: 'GET',
    params: data
  })
}

/**
 * 平行代理交易i流水
 */
export function preListPage(data) {
  return request({
    url: '/api/ag/pre/trx/list',
    method: 'GET',
    params: data
  })
}

/**
 * 平行代理交易汇总
 */
export function preSummaryByDay(data) {
  return request({
    url: '/api/ag/pre/trx/sum',
    method: 'GET',
    params: data
  })
}



/**
 * 查询商户 月交易汇总
 */
export function merchTrace(data) {
  return request({
    url: '/api/merch-trace/listPage',
    method: 'GET',
    params: data
  })
}

/**
 * 查询商户交易汇总
 */
export function merchTraceTotal(data) {
  return request({
    url: '/api/merch-trace/total',
    method: 'GET',
    params: data
  })
}


/**
 * 查询单个商户明细
 */
export function merchTraceDetail(data) {
  return request({
    url: '/api/merch-trace/detail',
    method: 'GET',
    params: data
  })
}


/**
 * 查询直推商户 月交易汇总
 */
export function agentTrace(data) {
  return request({
    url: '/api/agent-trace/listPage',
    method: 'GET',
    params: data
  })
}

/**
 * 查询直推单个商户交易汇总
 */
export function agentTraceTotal(data) {
  return request({
    url: '/api/agent-trace/total',
    method: 'GET',
    params: data
  })
}


/** 个商户明细
 */
export function agentTraceDetail(data) {
  return request({
    url: '/api/agent-trace/detail',
    method: 'GET',
    params: data
  })
}